package com.xmy.controller;

import com.xmy.api.IUserService;
import com.xmy.api.feign.IUserFeignService;
import com.xmy.entity.Result;
import com.xmy.pojo.ShopUser;
import com.xmy.pojo.ShopUserMoneyLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author wangjinlinag
 * @Classname UserController
 * @Description TODO
 * @Date 2021/5/12 3:54 下午
 */
@RestController
@RequestMapping
public class UserController {
    @Autowired
    private IUserService userService;

    @GetMapping("/user/{id}")
    public ShopUser findOne(@PathVariable("id")Long id){
        return userService.findOne(id);
    }

    @GetMapping("/user/updateMoneyPaid}")
    public Result updateMoneyPaid(@RequestBody ShopUserMoneyLog userMoneyLog){
        return userService.updateMoneyPaid(userMoneyLog);
    }
}
